namespace StationDataHub.Models.Entity;

/// <summary>
/// 充电设备信息表
/// </summary>
[SugarTable("EV_EquipmentInfo")]
public class EV_EquipmentInfo
{
    /// <summary>
    /// 充电站ID（运营商自定义唯一编码，必填，最大20字符）
    /// </summary>
    [SugarColumn(ColumnName = "StationID")]
    public string StationID { get; set; }

    /// <summary>
    /// 设备编码（同一运营商内唯一，必填，最大23字符）
    /// </summary>
    [SugarColumn(ColumnName = "EquipmentID")]
    public string EquipmentID { get; set; }

    /// <summary>
    /// 设备型号（生产商定义，非必填，最大20字符）
    /// </summary>
    [SugarColumn(ColumnName = "EquipmentModel")]
    public string EquipmentModel { get; set; }

    /// <summary>
    /// 设备类型（必填，整型枚举：1=直流设备，2=交流设备，3=交直流一体设备）
    /// </summary>
    [SugarColumn(ColumnName = "EquipmentType")]
    public int? EquipmentType { get; set; }

    /// <summary>
    /// 充电设备经度（GCJ-02坐标系，非必填，保留小数点后6位）
    /// </summary>
    [SugarColumn(ColumnName = "EquipmentLng")]
    public decimal? EquipmentLng { get; set; }

    /// <summary>
    /// 充电设备纬度（GCJ-02坐标系，非必填，保留小数点后6位）
    /// </summary>
    [SugarColumn(ColumnName = "EquipmentLat")]
    public decimal? EquipmentLat { get; set; }

    /// <summary>
    /// 充电设备总功率（单位kW，必填，保留小数点后1位）
    /// </summary>
    [SugarColumn(ColumnName = "Power")]
    public decimal? Power { get; set; }

    /// <summary>
    /// 充电设备名称（非必填，最大30字符）
    /// </summary>
    [SugarColumn(ColumnName = "EquipmentName")]
    public string EquipmentName { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    [SugarColumn(ColumnName = "UpdateTime")]
    public DateTime? UpdateTime { get; set; }
}